﻿using System.Collections.Generic;

namespace SDCloudSolution.SDCloud.Entities
{
    public class EntityCollection<TEntity>
    {
        public IList<TEntity> EntityList { get; set; }

        public int PageIndex { get; set; }

        public int PageSize { get; set; }

        public int TotalCount { get; set; }

        public EntityCollection(Paging paging)
        {
            PageIndex = paging.PageIndex;
            PageSize = paging.PageSize;
        }
    }
}
